const isDev = (process.env.DEV == 'true') ? true : false;
const isTest = (process.env.TEST == 'true') ? true : false;
const url = 'mongodb://localhost:27017/';// 本地 mongodb 连接地址
//const dbname = 'showapi08018082';// 本地 mongodb 数据库
const dbname = 'showdb';// 本地 mongodb 数据库
const testurl = 'mongodb://localhost:27017/';
const testdbname = 'showapitest';
const mlaburl_1 = "mongodb://ccms:ccms123@ds031551.mlab.com:31551/"
const mlaburl = "mongodb://ectivise:Ectivise_123@ds349455.mlab.com:49455/"
// const mlaburl = "mongodb://ectivise:Ectivise_123@ds349455.mlab.com:49455/queue"
const mlabdbname = 'queue';
const atlasuri = "mongodb+srv://ccms:ccms_123@showmongodb-ist5j.mongodb.net/showdb?retryWrites=true";
const s3Host = 'https://s3-ap-southeast-1.amazonaws.com';
const s3BucketName = 's3showstorage';
const s3ACL = 'public-read';
module.exports = {
    'adminsecret': 'ectiviseCloudAuthCode:b64226daf467cede0ee882d04bcd0ade',//管理员用秘钥
    'imageSize_b': 700,
    'imageSize_m': 300,
    'imageSize_s': 100,

    'secret': 'ccmsShowAuthCode:b84846daf467cede0ee462d04bcd0ade', // used when we create and verify JSON Web Tokens
    'wechattoken': 'b84846daf467cede0ee462d04bcd0ade', // used when we create and verify JSON Web Tokens
    'url': url,
    'db': dbname,
    'database': url + dbname,
    'testurl': url,// 测试 mongodb 连接地址
    'testdb': dbname,// 测试 mongodb 数据库
    'testdatabase': testurl + testdbname,
    'atlasuri': atlasuri,
    'mlaburl': mlaburl + mlabdbname,

    's3Host': s3Host,
    's3Bucket': s3BucketName,
    's3ACL': s3ACL,
    "S3accessKeyId": "AKIAJWGMHTGGM7BH2MPQ",
    "S3secretAccessKey": "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",
    "S3region": "ap-southeast-1",

    'host': isDev ? 'dev.ccmsshow.com' : 'api.ccmsshow.com',
    'vhost': 'api.ccmsshow.com',

    'isDev': isDev,
    'isTest': isTest,

    'wechat': {
        appID: 'wxeda3982509da49ac', //填写你自己的appID
        appSecret: '715b77b4345364d97659f34cb74a9d7b', //填写你自己的appSecret
        token: 'b84846daf467cede0ee462d04bcd0ade' //填写你自己的token
    },

    S3_CONF: {
        'host': s3Host,
        "cloudfronturl": "http://d2an6w5e4turq6.cloudfront.net",
        'bucket': s3BucketName,
        'ACL': s3ACL,
        "accessKeyId": "AKIAJWGMHTGGM7BH2MPQ",
        "secretAccessKey": "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",
        "region": "ap-southeast-1",
        "moments3url":"https://s3-ap-southeast-1.amazonaws.com/s3showstorage/momentimages/",
        "s3url_cloudfront":"https://d1zlje3vtaoe0w.cloudfront.net"//not used
    }
}
